Integration of external casino providers to Evenbet
General Information
This sub-section provides information about the integration of external casino providers to the Evenbet system.
All requests to the system must be done with the header {Authorization} that can be generated if you encrypt the request body string + secret key with sha256 algorithm.
$hash = hash("sha256", $request->getRawBody() . $secretKey);
The generation of Authorization header with hash function (php).
Example of Authorization header generation:
Given the following raw request body and secret key:
Raw body: {"token":"b91b664a8e2b558c240824f7da0e842c","gameId":"testGameId","endRound":false,"roundId":"29","transactionId":"d_182","amount":0}
Secret key: test_secret_key
The resulting hash used in the Authorization header:
5a0314907c49dea0b8cc90533e80c82ce523285c5f01831e41f06a0d6ba69a6e
📄️ Main system’s callbacks
Main system callbacks for interacting with the provider are described in this section.
📄️ Loading of Available Games
The casino provider must make available a feed (as a simple JSON file) or an endpoint that returns a list of available games via an HTTP(S) GET request.
📄️ FreeSpins
Activation and Cancellation of FreeSpins
📄️ Opening a game
When a user launches a provider's game, the user is redirected to the provider's OPENGAMEURL using the GET method. The game is usually opened in either an iframe or in a new tab.
📄️ Opening a game via Provider URL
Evenbet now supports an alternative method for launching games — using a URL received from the game provider via API. In addition to the existing method, where the game launch URL is generated internally, this new option allows integration with external provider links. To enable it, contact the Evenbet team.
📄️ Errors
In case of error, the object with the following structure is returned instead of expected response:
📄️ FAQ
Frequently asked questions about integrating an external casino provider with the Evenbet system, covering game launch, authentication, transactions, rollbacks, and FreeSpins.
📄️ Changelog
| Date | Changes Description |